package org.dstart.air.window.sub.draw
{
	import flash.display.Sprite;

	public class DrawTitle extends Sprite
	{
		private var objWidth:Number;
		private var objHeight:Number;
		
		public function DrawTitle(ww:Number = 100, hh:Number = 26)
		{
			objWidth = ww;
			objHeight = hh;
			
			ChangeSize();
		}
		
		public override function set width(value:Number):void
		{
			objWidth = value;
			
			ChangeSize();
		}
		
		public override function set height(value:Number):void
		{
			objHeight = value;
			
			ChangeSize();
		}
		
		private function ChangeSize():void
		{
			this.graphics.clear();
			this.graphics.beginFill(0xFFFFFF, 0);
			this.graphics.drawRect(0, 0, objWidth, objHeight);
			this.graphics.endFill();
		}
		
	}
}